# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Docs.V1.Model.EmbeddedObjectSuggestionState do
  @moduledoc """
  A mask that indicates which of the fields on the base EmbeddedObject have been changed in this suggestion. For any field set to true, there's a new suggested value.

  ## Attributes

  *   `descriptionSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to description.
  *   `embeddedDrawingPropertiesSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.EmbeddedDrawingPropertiesSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in embedded_drawing_properties have been changed in this suggestion.
  *   `embeddedObjectBorderSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.EmbeddedObjectBorderSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in embedded_object_border have been changed in this suggestion.
  *   `imagePropertiesSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.ImagePropertiesSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in image_properties have been changed in this suggestion.
  *   `linkedContentReferenceSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.LinkedContentReferenceSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in linked_content_reference have been changed in this suggestion.
  *   `marginBottomSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_bottom.
  *   `marginLeftSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_left.
  *   `marginRightSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_right.
  *   `marginTopSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_top.
  *   `sizeSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.SizeSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in size have been changed in this suggestion.
  *   `titleSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to title.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :descriptionSuggested => boolean() | nil,
          :embeddedDrawingPropertiesSuggestionState =>
            GoogleApi.Docs.V1.Model.EmbeddedDrawingPropertiesSuggestionState.t() | nil,
          :embeddedObjectBorderSuggestionState =>
            GoogleApi.Docs.V1.Model.EmbeddedObjectBorderSuggestionState.t() | nil,
          :imagePropertiesSuggestionState =>
            GoogleApi.Docs.V1.Model.ImagePropertiesSuggestionState.t() | nil,
          :linkedContentReferenceSuggestionState =>
            GoogleApi.Docs.V1.Model.LinkedContentReferenceSuggestionState.t() | nil,
          :marginBottomSuggested => boolean() | nil,
          :marginLeftSuggested => boolean() | nil,
          :marginRightSuggested => boolean() | nil,
          :marginTopSuggested => boolean() | nil,
          :sizeSuggestionState => GoogleApi.Docs.V1.Model.SizeSuggestionState.t() | nil,
          :titleSuggested => boolean() | nil
        }

  field(:descriptionSuggested)

  field(:embeddedDrawingPropertiesSuggestionState,
    as: GoogleApi.Docs.V1.Model.EmbeddedDrawingPropertiesSuggestionState
  )

  field(:embeddedObjectBorderSuggestionState,
    as: GoogleApi.Docs.V1.Model.EmbeddedObjectBorderSuggestionState
  )

  field(:imagePropertiesSuggestionState,
    as: GoogleApi.Docs.V1.Model.ImagePropertiesSuggestionState
  )

  field(:linkedContentReferenceSuggestionState,
    as: GoogleApi.Docs.V1.Model.LinkedContentReferenceSuggestionState
  )

  field(:marginBottomSuggested)
  field(:marginLeftSuggested)
  field(:marginRightSuggested)
  field(:marginTopSuggested)
  field(:sizeSuggestionState, as: GoogleApi.Docs.V1.Model.SizeSuggestionState)
  field(:titleSuggested)
end

defimpl Poison.Decoder, for: GoogleApi.Docs.V1.Model.EmbeddedObjectSuggestionState do
  def decode(value, options) do
    GoogleApi.Docs.V1.Model.EmbeddedObjectSuggestionState.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Docs.V1.Model.EmbeddedObjectSuggestionState do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
